package com.hxkj.mapper;

import com.hxkj.domain.po.Leaflet;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* 数据库操作接口
*
* @author: zzx
* @version: 1.0
* @datetime: 2018-06-05 17:57:34
*
*/
@Repository("leafletMapper")
public interface LeafletMapper {

    /**
     * 根据主键查询Leaflet对象
     *
     * @param leafletId
     * @return Leaflet对象
     */
    Leaflet selectByPrimaryKey_(Long leafletId);

    /**
     * 根据查询条件查询符合条件的Leaflet对象
     *
     * @param leaflet
     * @return 符合条件的Article对象List
     */
    List<Leaflet> select(Leaflet leaflet);

    /**
     * 根据主键删除Article对象
     *
     * @param leafletId
     * @return 影响条件数
     */
    int deleteByPrimaryKey(Long leafletId);

    /**
     * 根据条件删除符合条件的Leaflet对象
     *
     * @param leaflet
     * @return 影响条件数
     */
    int delete(Leaflet leaflet);

    /**
     * 插入leaflet对象
     *
     * @param leaflet
     * @return 影响条件数
     */
    int insert(Leaflet leaflet);

    /**
     * 更新leaflet对象
     *
     * @param leaflet
     * @return 影响条件数
     */
    int update(Leaflet leaflet);

    /**
     * 查询单页列表
     *
     * @param leaflet
     * @return 符合条件的leaflet对象List
     */
    List<Leaflet> getLeafletList(Leaflet leaflet);

    /**
     * 查询相同类型的单页标题 是否重名，存在则重名！
     *
     * @param leaflet
     * @return 符合条件的leaflet对象List
     */
    List<Leaflet> getLeafletHeadline(Leaflet leaflet);

    /**
     * 查询已启用的单页信息
     *
     * @param leaflet
     * @return 符合条件的Article对象List
     */
    List<Leaflet> getLeafletByStatus(Leaflet leaflet);

    /**
     * 根据自定义标签查询 对应的单页集合
     *
     * @param leaflet
     * @return 符合条件的Article对象List
     */
    List<Leaflet> getLeafletByIds(Leaflet leaflet);
}
